<template>
	<view class="content">
		<view class="mainlist">
		<uni-card padding="10px 0">
			<!-- <view>
				<button class="btns"></button>
				<button class="btns"></button>
			</view> -->
			<view>
				<u-grid :border="false" @click="click">
					
						<u-grid-item v-for="(baseListItem,baseListIndex) in baseList" :key="baseListIndex">
							<u-icon :customStyle="{paddingTop:20+'rpx'}" :name="baseListItem.name" :size="22"></u-icon>
							<text class="grid-text">{{baseListItem.title}}</text>
						</u-grid-item>
		
				</u-grid>
				<u-toast ref="uToast" />
			</view>
		</uni-card>

		<uni-card padding="10px 0" :thumbnail="avatar">
			<image style="width: 100%;" src="/static/1.jpg"></image>
			<text
				class="uni-body uni-mt-5">温馨提示公告</text>
		</uni-card>
		<uni-card padding="10px 0" :thumbnail="avatar">
			<image style="width: 100%;" src="/static/2.png"></image>
			<text
				class="uni-body uni-mt-5">预约流程</text>
		</uni-card>
		<uni-card padding="10px 0" :thumbnail="avatar">
			<image style="width: 100%;" src="/static/3.jpg"></image>
			<text
				class="uni-body uni-mt-5">卡片组件通用来显示完整独立的一段信息，同时让用户理解他的作用。例如一篇文章的预览图、作者信息、时间等，卡片通常是更复杂和更详细信息的入口点。</text>
		</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				baseList: [{
						name: 'photo',
						title: '预约'
					},
					{
						name: 'lock',
						title: '锁头'
					},
					{
						name: 'star',
						title: '星星'
					},
				],
				
			}
		},
		onLoad() {

		},
		methods: {
			click(name) {
				this.$refs.uToast.success(`点击了第${name}个`);
				if(name==0){
					this.$refs.uToast.success(`点击了`);
					// this.$router.push('order/order')
					// this.$router.push('/pages/order/order')
					uni.navigateTo({
						url: '/pages/order/order'
					});
				}
				
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		background: url("../../static/bat.jpg") no-repeat;
		background-size: 100% 25%;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}


	.grid-text {
		font-size: 14px;
		color: #909399;
		padding: 10rpx 0 20rpx 0rpx;
		/* #ifndef APP-PLUS */
		box-sizing: border-box;
		/* #endif */
	}
	.mainlist{
		margin-top: 340rpx;
	}
</style>
